.class public Lcom/instagram/android/fragment/q;
.super Lcom/instagram/e/b/a;
.source "AlertDialogFragment.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 15
    invoke-direct {p0}, Lcom/instagram/e/b/a;-><init>()V

    return-void
.end method

.method public static a(Ljava/lang/String;)Lcom/instagram/android/fragment/q;
    .locals 1
    .parameter

    .prologue
    const/4 v0, 0x0

    .line 18
    invoke-static {v0, p0, v0}, Lcom/instagram/android/fragment/q;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/android/fragment/q;

    move-result-object v0

    return-object v0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/android/fragment/q;
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 22
    new-instance v0, Lcom/instagram/android/fragment/q;

    invoke-direct {v0}, Lcom/instagram/android/fragment/q;-><init>()V

    .line 23
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 24
    const-string v2, "message"

    invoke-virtual {v1, v2, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 25
    const-string v2, "title"

    invoke-virtual {v1, v2, p0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 26
    const-string v2, "help_url"

    invoke-virtual {v1, v2, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 27
    invoke-virtual {v0, v1}, Lcom/instagram/android/fragment/q;->g(Landroid/os/Bundle;)V

    .line 28
    return-object v0
.end method


# virtual methods
.method public c(Landroid/os/Bundle;)Landroid/app/Dialog;
    .locals 5
    .parameter

    .prologue
    .line 33
    invoke-virtual {p0}, Lcom/instagram/android/fragment/q;->i()Landroid/os/Bundle;

    move-result-object v1

    .line 34
    const-string v0, "message"

    invoke-virtual {v1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 36
    const/4 v0, 0x0

    .line 37
    const-string v3, "title"

    invoke-virtual {v1, v3}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 38
    const-string v0, "title"

    invoke-virtual {v1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 41
    :cond_0
    new-instance v3, Lcom/instagram/ui/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/q;->j()Landroid/support/v4/app/j;

    move-result-object v4

    invoke-direct {v3, v4}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    invoke-virtual {v3, v2}, Lcom/instagram/ui/a/a;->a(Ljava/lang/CharSequence;)Lcom/instagram/ui/a/a;

    move-result-object v2

    .line 42
    if-eqz v0, :cond_1

    .line 43
    invoke-virtual {v2, v0}, Lcom/instagram/ui/a/a;->a(Ljava/lang/String;)Lcom/instagram/ui/a/a;

    .line 46
    :cond_1
    const-string v0, "help_url"

    invoke-virtual {v1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 47
    if-eqz v0, :cond_2

    .line 48
    sget v1, Lcom/facebook/ba;->learn_more:I

    new-instance v3, Lcom/instagram/android/fragment/r;

    invoke-direct {v3, p0, v0}, Lcom/instagram/android/fragment/r;-><init>(Lcom/instagram/android/fragment/q;Ljava/lang/String;)V

    invoke-virtual {v2, v1, v3}, Lcom/instagram/ui/a/a;->c(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    .line 56
    :cond_2
    sget v0, Lcom/facebook/ba;->dismiss:I

    new-instance v1, Lcom/instagram/android/fragment/s;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/s;-><init>(Lcom/instagram/android/fragment/q;)V

    invoke-virtual {v2, v0, v1}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    return-object v0
.end method
